#include<iostream>

using namespace std;

int main(){
	double mount = 0;
	int number;
	cin >> number;
	unsigned long i;
	for(i = 1; mount <= number; i++){
		mount += 1.0/i;
	}
	cout << i-1;
	return 0;
}
